package com.resume.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Classname City
 * @Description nian
 * @Date 2021/7/18 20:08
 * @Created by 
 */

/**
 * 市
 */
@ApiModel(value = "com-resume-domain-City")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_city")
public class City implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 市名
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "市名")
    private String name;

    /**
     * 显示优先级
     */
    @TableField(value = "priority")
    @ApiModelProperty(value = "显示优先级")
    private Integer priority;

    /**
     * 状态：1开通，2未开通
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态：1开通，2未开通")
    private Integer status;

    /**
     * 省的编号，外键
     */
    @TableField(value = "province_id")
    @ApiModelProperty(value = "省的编号，外键")
    private Integer provinceId;

    private static final long serialVersionUID = 1L;
}